package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.HsmanDAO;
import org.jsbd.boss.domian.channel.Hsman;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service("hmanDao")
public class HmanDAOImpl extends CrackBaseDao implements HsmanDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(HmanDAOImpl.class);

	@Override
	public List<Hsman> selectAll() {
		return super.queryForList("qy_hsman.GET_HSMAN_DEVICE_LIST", null);
	}

	@Override
	public List<Hsman> selectList(Hsman hsman) {
		return super.queryForList("qy_hsman.GET_HSMAN_DEVICE_LIST", hsman);
	}
	
	
	@Override
	public List<String> selectHsman(){
		return super.queryForList("qy_hsman.GET_HSMAN_LIST");
	}
	
	@Override
	public Integer selectCount(Hsman hsman) {
		return super.queryForCount("qy_hsman.GET_HSMAN_DEVICE_COUNT", hsman);
	}
	
	@Override
	public Integer insertHsman(Hsman hsman) {
		return (Integer)super.insert("qy_hsman.INSERT_HSMAN", hsman);
	}
	
	@Override
	public void batchInsert(List<Hsman> list){
		super.batchInsert("qy_hsman.INSERT_HSMAN", list);
	}
	
	
	@Override
	public Integer updateHsman(Hsman hsman) {
		return super.update("qy_hsman.UPDATE_HSMAN", hsman);
	}
	
	
	@Override
	public Integer deleteHsman(Integer id) {
		return super.delete("qy_hsman.DEL_HSMAN", id);
	}
}
